5.2.1
In this exercise we look at memory locality properties of matrix computation. The following code is written in C, where elements within the same row are stored contiguously.
a. for (I=0; I<8; I++)
for (J=0; J<8000; J++)
A[I][J]=B[I][0]+A[J][I];
b. for (J=0; J<8000; J++)
for (I=0; I<8; I++)
A[I][J]=B[I][0]+A[J][I];
How many 32­bit integers can be stored in a 16­byte cache line?
 
 
View Solution
 
 
 
<< Back Next >>